<?php
header('Content-type: text/html; charset=utf-8');
?>
<?php
echo $this->adminToolBar('language', 'edit', '/admin/translate/edittranslate/', '/admin/translate/edittranslate/', '/admin/translate/delete/', '/admin/translate/manage/section/' . $this->section);
?>
<div class="mid-content">
	<h5><?php echo $this->title; ?></h5>
	<table width="651" border="0" cellspacing="2" cellpadding="1">  
	<?php
		foreach ($this->translate_entries as $translate_entry)
		{
  			$contents = str_replace('%', '', $translate_entry['keyText']);
  			$this->key = $contents; 
  			if($this->lang == 'en') {
  				$text = $translate_entry['en_text'];
  			} else if ($this->lang == 'ru') {
  				$text = $translate_entry['ru_text'];
  			}
	?>
  		<tr>
    		<td align="left" valign="top" width="62">Key:</td>
    		<td><?php echo $this->key; ?></td>
  		</tr>
  		<tr>
    		<td align="left" valign="top">Lang: </td>
    		<td><?php echo strtoupper($this->lang); ?></td>
  		</tr>
  		<tr>
    		<td colspan="2">
      			<!--<textarea name="contents" id="contents" rows="12" cols="75"><?php echo $text; ?></textarea>-->
      			<?php echo $this->EditorFck('contents'); ?>
      			<input type="hidden" name="id" id="id" value="<?php echo $this->id; ?>" />
      			<input type="hidden" name="lang" id="lang" value="<?php echo $this->lang; ?>" />
      			<input type="hidden" name="section" id="section" value="<?php echo $this->section; ?>" />
    		</td>
  		</tr>  
	<?php
		}
	?>  
	</table>  	
</div>  	